/**
 * Created by baoman on 2017/4/6.
 */
angular.module(moduleName + '.directives')
  .directive('hrQuestionList',function(){
    return{
      restrict:'EA',
      templateUrl:'hr-question-list/hr-question-list.html',
      relace:true,
      scope:{
        questions:"="
      },
      link:function(scope){
        scope.showDetail = showDetail;
        function showDetail(index){
          scope.questions[index].isShow = !scope.questions[index].isShow;
        }

      }
    }
  });